.container {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  height: 100%;

  &::before {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    display: block;
    width: 100%;
    height: 100%;
    content: '';
    background: linear-gradient(90deg, $main-yellow 0%, $main-red 100%) top/100% 50% no-repeat;
  }
}

.topBar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.typeTabs {
  display: flex;
  align-items: center;
  margin-left: 20px;
  padding-bottom: 10px;
  height: 30px;
}

%tabBase {
  position: relative;
  margin-right: 20px;
  color: #fff;
  font-size: 20px;
  transition: all 0.25s;

  &::after {
    position: absolute;
    bottom: -8px;
    left: 50%;
    display: block;
    height: 6px;
    content: '';
    border-radius: 3px;
    background-color: #fff;
    transform: translateX(-50%);
    transition: all 0.25s;
  }
}

.tabNormal {
  @extend %tabBase;
  font-weight: normal;
  &::after {
    width: 0;
    opacity: 0;
  }
}

.tabActive {
  @extend %tabBase;
  font-weight: bold;
  &::after {
    width: 1.5em;
    opacity: 1;
  }
}

.chartType {
  position: relative;
  width: 36px;
  height: 36px;
  margin-left: 1em;
}

%chartIcoBase {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  transition: all 0.25s;
}

.chartIcoNormal {
  @extend %chartIcoBase;
  transform: scale(0.8);
  visibility: hidden;
  opacity: 0;
}
.chartIcoActive {
  @extend %chartIcoBase;
  transform: scale(1);
  visibility: visible;
  opacity: 1;
}

.scroll {
  flex: 1;
  overflow-y: scroll;
}

.layerWrapper {
  padding: $content-box-padding;
  background: linear-gradient(transparent 0%, transparent 30%, #fff 30%, #fff 100%);
}

.layer {
  @extend %with-shadow;
  padding: $content-box-padding;
  border-radius: $box-radius;
  background-color: #fff;
}

// 统计信息
.statistics {
  display: flex;
}

.statisticsItem {
  position: relative;
  width: 50%;
  text-align: center;

  &:first-child::after {
    position: absolute;
    top: 50%;
    right: -1px;
    display: block;
    content: '';
    width: 2px;
    height: 80%;
    background: $main-gray;
    transform: translateY(-50%);
  }
}

.statisticsTitle {
  display: block;
  font-size: 80%;
  font-weight: bold;
  color: $font-gray;
}

.statisticsNum {
  display: block;
  font-weight: bold;

  &.red {
    color: $main-red;
  }
  &.green {
    color: $main-green;
  }
}
